package com.gxtbindings.showcase.client.demo;

import java.io.Serializable;

import com.extjs.gxt.ui.client.data.BeanModelTag;

public class Person implements BeanModelTag, Serializable {

	private static final long serialVersionUID = -5328136458051814098L;

	private String id;
	
	private String firstName;
	
	private String lastName;
	
	private int age;

	public Person(String firstName, String lastName, int age) {
		super();
		this.firstName = firstName;
		this.lastName = lastName;
		this.age = age;
	}

	public Person(String id, String firstName, String lastName, int age) {
		super();
		this.id = id;
		this.firstName = firstName;
		this.lastName = lastName;
		this.age = age;
	}
	
	public String toString()
	{
//		StringBuilder sb = new StringBuilder();
//		sb.append("id=" + id);
//		sb.append(", firstName=" + firstName);
//		sb.append(", lastName=" + lastName);
//		sb.append(", age=" + age);
//		return sb.toString();
		return firstName + " " + lastName + ", " + age;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getFirstName() {
		return firstName;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	public String getLastName() {
		return lastName;
	}

	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}
}